package com.zls.dubbo.service.impl;

import com.zls.dubbo.service.DeviceService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

//@Service //注入到注册中心  spring容器
public class MyDeviceServiceImpl implements DeviceService {
    @Value("${server.port}")
    private int port;
    @Override
    public String showDevice(Integer id) {
        System.out.println("进入DeviceServiceImpl.........端口号为:"+port);
        return "device---"+id;
    }
}
